//模型创建 https://www.sequelize.com.cn/core-concepts/model-basics#%E5%AD%97%E7%AC%A6%E4%B8%B2

//分类
module.exports = (sequelize, Sequelize) => {
  return sequelize.define(
    "shop",
    {
      id: {
        type: Sequelize.UUID,
        notNull: true,
        primaryKey: true,
        defaultValue: Sequelize.UUIDV4, // 或 DataTypes.UUIDV1
      },
      shopName: {
        type: Sequelize.STRING,
        notNull: true,
        notEmpty: true,
        comment: "店铺名称",
      },
    },
    {
      tableName: "mg_shopname",
    }
  );
};
